package com.xl.generator.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xl.generator.service.CommonUserService;
import com.xl.generator.domain.CommonUser;
import com.xl.generator.mapper.CommonUserMapper;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;

/**
* @author Nannan
* @description 针对表【common_user】的数据库操作Service实现
* @createDate 2022-11-12 22:31:50
*/
@Service
public class CommonUserServiceImpl extends ServiceImpl<CommonUserMapper, CommonUser>
    implements CommonUserService {
	@Resource
	private CommonUserMapper commonUserMapper;

	@Override
	public List listALL(IPage iPage) {
		return commonUserMapper.listAll(iPage);
	}

	@Override
	public Integer getRankByUserId(int userId) {
		return commonUserMapper.selectRankByUserId(userId);
	}
}




